import request from '@/utils/request'

export function getPermission(providerName, providerKey) {
  return request({
    url: `/api/permission-management/permissions?providerName=${providerName}&providerKey=${providerKey}`,
    method: 'get'
  })
}

export function edit(providerName, providerKey, dto) {
  return request({
    url: `/api/permission-management/permissions?providerName=${providerName}&providerKey=${providerKey}`,
    method: 'put',
    data: dto
  })
}
